use "C:\Users\m1049\Dropbox\Wang_PB Replication\data\main.dta"

** Was belief updated?

reg posterior_correct t2 t3 t4, r

reg posterior_correct t2 t3 t4 if attention_recode==1, r


mean posterior_correct if treatment==1
estimates store m10

mean posterior_correct if treatment==1 & attention_recode==1
estimates store m11

mean posterior_correct if treatment==2
estimates store m20

mean posterior_correct if treatment==2 & attention_recode==1
estimates store m21

mean posterior_correct if treatment==3
estimates store m30

mean posterior_correct if treatment==3 & attention_recode==1
estimates store m31

mean posterior_correct if treatment==4
estimates store m40

mean posterior_correct if treatment==4 & attention_recode==1
estimates store m41

set scheme s2color
grstyle init
grstyle set plain
grstyle set color #737373 	#333333

coefplot m10 m11, bylabel(Control)  ///
       || m20 m21, bylabel(Salience)  ///
       || m30 m31, bylabel("Information" "Provision")  ///
	   || m40 m41, bylabel("Equal Treatment" "Norm")  ///
       || , bycoefs byopts(xrescale)   ///
            plotlabels("All Respondents (N=1,590)" "Attentive Respondents (N=1,174)") ///
			title("") ytitle("Level of Support (7-Point Scale)", height(7)) ///
			ylabel(,labsize(small)) ytitle("") vertical ///
			name(posterior,replace) saving(posterior,replace)  mlabel format(%9.3g) mlabposition(3) 
